//
//  AddCupLayer.h
//  PlantNanny
//
//  Created by Joueu on 14-12-19.
//
//

#ifndef __PlantNanny__AddCupLayer__
#define __PlantNanny__AddCupLayer__

#include "cocos2d.h"
#include "PopupLayer.h"
#include "ShaderLayer.h"
#include "cocos-ext.h"
#include "ui/CocosGui.h"
#include "XKPageView.h"
#include "DataCenter.h"

USING_NS_CC;
USING_NS_CC_EXT;

class AddCupLayer: public Layer, public XKPageViewDelegate
{
public:
    CREATE_FUNC(AddCupLayer);
    virtual bool init();
    
private:
    PopupLayer *popLayer;
    ShaderLayer *shaderLayer;
    
    void closeBtnPressed(Ref *pSender, ui::Widget::TouchEventType type);
    void addBtnPressed(Ref *pSender, ui::Widget::TouchEventType type);
private:
    XKPageView *cupsPageView;
    XKPageView *opasPageView;
private:
    virtual Size sizeForPerPage(XKPageView *pageView);
    ValueVector cups;
    ValueVector opacity;
};
#endif /* defined(__PlantNanny__AddCupLayer__) */
